<template>
	<view class="layout">
		<demo-child ref="child"></demo-child>
		<view>---</view>
		<button @click="update">click the update</button>
		<navigator url="/pages/demo66/demo66?name=tom&age=20">demo66</navigator>
	</view>
</template>

<script setup>
import {onMounted, ref} from "vue";

const child = ref(null);
const update = function(){
	child.value.updateCount();
}

onMounted(()=>{
	console.log(child.value)
})
</script>

<style lang="scss" scoped>
	       
</style>
